package com.cn.por.ai;

import cn.hsa.base.web.vo.WrapperResponse;
import com.cn.por.auto.datasource.dto.DataSourceConfigADTO;
import com.cn.por.auto.entity.Table;
//import io.github.pigmesh.ai.deepseek.core.DeepSeekClient;
//import io.github.pigmesh.ai.deepseek.core.chat.ChatCompletionResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

@RestController
@RequestMapping("/web/ai")
@Api(tags = "ai")
public class ChatController {


//    @Autowired
//    private DeepSeekClient deepSeekClient;
//
//    // sse 流式返回
//    @GetMapping(value = "/chat", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
//    public Flux<ChatCompletionResponse> chat(String prompt) {
//        return deepSeekClient.chatFluxCompletion(prompt);
//    }
}
